package com.yehongyu.mytools.basic.grammar;

interface Playable {
	void play();
}

interface Bounceable {
	void play();
}

interface Rollable extends Playable, Bounceable {
	Java008_Implement2 ball = new Java008_Implement2("PingPang");
}

class Java008_Implement2 implements Rollable {
	private String name;

	public String getName() {
		return name;
	}

	public Java008_Implement2(String name) {
		this.name = name;
	}

	public void play() {
		Java008_Implement2 ball = new Java008_Implement2("Football");
		System.out.println(ball.getName());
	}

	public static void main(String[] args) {
		Java008_Implement2 b = new Java008_Implement2("ss");
		b.play();
	}
}
